package ${package.QueryRequest};

import com.pine.common.beans.request.SuperQueryRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * <p>
 * ${table.comment!}查询请求体
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(title = "${QueryRequestName}", description = "${table.comment!}查询请求体")
public class ${QueryRequestName} extends SuperQueryRequest {

    @Serial
    private static final long serialVersionUID = ${serialVersionUIDList[3]}L;

<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list QueryRequestFields as field>
    <#if field.date>
    /**
     * ${field.comment}-起始
     */
    @Schema(title = "${field.propertyName}Start", description = "${field.comment}-起始")
    private ${field.propertyType} ${field.propertyName}Start;

    /**
     * ${field.comment}-截止
     */
    @Schema(title = "${field.propertyName}End", description = "${field.comment}-截止")
    private ${field.propertyType} ${field.propertyName}End;

    <#else>
    /**
     * ${field.comment}
     */
    @Schema(title = "${field.propertyName}", description = "${field.comment}")
    private ${field.propertyType} ${field.propertyName};

    </#if>
</#list>
<#-- ----------  END 字段循环遍历  ---------->
}
